package testImpl;
/*  
 * To change this template, choose Tools | Templates  
 * and open the template in the editor.  
 */

import com.prabhu.jeazyprops.bean.KeyValue;
import com.prabhu.jeazyprops.encryption.AES;
import com.prabhu.jeazyprops.props.BaseProps;

/**
 * Test Application for Printing the Properties
 *
 * @author Prabhu Prabhakaran
 */
public class PropsTestCmd extends BaseProps {

    public KeyValue Property1 = new KeyValue("Property1", "Property1");
    public KeyValue Property2 = new KeyValue("Property2", "Property2", true);
    public KeyValue Property3 = new KeyValue("Property3", "Property3");
    public KeyValue Property4 = new KeyValue("Property4", "Property3", true);
    boolean property1;
    String property2;
    String property3;
    String property4;

    public boolean getProperty1() {
        return property1;
    }

    public void setProperty1(boolean property1) {
        this.property1 = property1;
    }

    public String getProperty2() {
        return property2;
    }

    public void setProperty2(String property2) {
        this.property2 = property2;
    }

    public String getProperty3() {
        return property3;
    }

    public void setProperty3(String property3) {
        this.property3 = property3;
    }

    public String getProperty4() {
        return property4;
    }

    public void setProperty4(String property4) {
        this.property4 = property4;
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        PropsTestCmd propsTest = new PropsTestCmd();
        propsTest.setEncryption(new AES());
        propsTest.loadProperties("test.xml");
        propsTest.printProperties();
    }
}